@import "normalize.css/normalize.css";
@import "element-plus/dist/index.css";
@import "material-design-icons/iconfont/material-icons.css";

@media screen and (min-width: 320px) and (max-width: 1000px) {
  html {
    body {
      #app {
        .el-icon {
          vertical-align: middle;
        }
      }
    }
  }
}

.metarial-icons {
  font-weight: normal;
}

.module-header,
.module-content,
.module-footer {
  padding: 16px;
}

.module-header {
  .el-row {
    &:last-child {
      .el-col-24 {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
      }
    }
  }
}

.modal-footer {
  text-align: right;
}

.el-select {
  width: 100%;
}

.el-table {

  // el-table 内容溢出时tooltip的样式
  .is-dark {
    max-height: 45%;
    line-height: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;

    @media (max-width:800px) {
      max-width: 70%;
    }

    @media (min-width:800px) and (max-width:1000px) {
      max-width: 50%;
    }

    @media (min-width:1000px) {
      max-width: 40%;
    }

    // 指示器箭头 滚动形式箭头无用处
    .el-popper__arrow {
      display: none;
    }
  }


  // 表格滚动条
  .el-scrollbar__bar {
    $scrollbar_size: 10px;
    $scrollbar_bg_color: rgb(0, 0, 0);

    // 竖
    &.is-vertical {
      width: $scrollbar_size;

      .el-scrollbar__thumb {
        background-color: $scrollbar_bg_color;
      }
    }

    // 横
    &.is-horizontal {
      height: $scrollbar_size;

      .el-scrollbar__thumb {
        background-color: $scrollbar_bg_color;
      }
    }
  }
}

// el-table 标题列样式
.el-table--border th.el-table__cell {
  background: #F8F8F9 !important;
  color: rgb(0, 0, 0, .6) !important;
}